Remove free from get_options. Thanx, Alex!
authorrobertl <robertl>
Tue, 5 Nov 2002 18:05:25 +0000 (18:05 +0000)
committerrobertl <robertl>
Tue, 5 Nov 2002 18:05:25 +0000 (18:05 +0000)
vecs.c

diff --git a/vecs.c b/vecs.c
index 9f7bfd6f90051617a3f7465f5c73e906717d8c86..a06a8276912db5eb102a106185fb1d256807a445 100644 (file)
--- a/vecs.c
+++ b/vecs.c
@@ -222,7 +222,11 @@ get_option(const char *iarglist, const char *argname)
                        break;
                }
        }
-       free(arglist);
+       /*
+        * Return an offset into the allocated copy.
+        * The caller mustn't free or otherwise get froggy with 
+        * this data.
+        */
        return rval;
 }